package project.AnimalSoundClass;

public class Dog extends Animal {

    @Override
    void cry() {
        System.out.println("汪汪汪" + "\n" + getAnimalName());
    }

    @Override
    String getAnimalName() {
        return "小狗";
    }
}
